import axios from '../utils/http' // 导入http中创建的axios实例
import { Base64 } from '../utils/base'
let baseObj = new Base64()
const base_url = process.env.BASE_API
const inter_url = '/proxy/cam/proxy/common?api='
const knowledgeBaseApi = {
  //列表
  getCustomerInfoList(params) {
    let url = 'CustomerSolicitFacade-getCustomerInfoList'
    return axios.post(`${base_url}${inter_url}${baseObj.encode(url)}`, params)
  },
  //详情
  getCustomerInfoById(params) {
    let url = 'CustomerSolicitFacade-getCustomerInfoById'
    return axios.post(`${base_url}${inter_url}${baseObj.encode(url)}`, params)
  },
  // 根据电话查询车档，客户档案相关信息
  getCustomerInfoByPhone(params) {
    let url = 'CustomerSolicitFacade-getTelSelectCarCusInfo'
    return axios.post(`${base_url}${inter_url}${baseObj.encode(url)}`, params)
  }
}

export default knowledgeBaseApi
